Skip to the next line in a unidbgrid... | 您所在的位置:网站首页 › UniDBGrid's change page problem › Skip to the next line in a unidbgrid... |
Algu茅m saberia alterar esta fun莽茫o para que ao avan莽ar a linha o campo j谩 fique em modo de edi莽茫o, n茫o sendo necess谩rio dar outro clique para ficar em modo de edi莽茫o. 聽 Does anyone know how to change this function to move the line of the field that let in edit mode , there is no need to click another to stay in edit mode ? 聽 function reconfigure(sender, store, columns, oldStore, the, eOpts) {聽聽聽 var grid = sender;聽聽聽 for (var i = 0; i < columns.length; i++) {聽聽聽聽聽聽聽 if (columns.getEditor()) {聽聽聽聽聽聽聽聽聽聽聽 columns.getEditor().on('specialkey', function(field, e) {聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 if (e.getKey() == 13) {聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 var store = grid.getStore();聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 var selModel = grid.getSelectionModel();聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 var selectedRecord = selModel.getLastSelected();聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 var recordIndex = store.indexOf(selectedRecord);聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 var nextRecord = store.getAt(recordIndex + 1);聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 if (nextRecord) {聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 selModel.select(nextRecord);聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 }聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 }聽聽聽聽聽聽聽聽聽聽聽 })聽聽聽聽聽聽聽 }聽聽聽 }} 聽 聽 Tks. |
CopyRight 2018-2019 实验室设备网 版权所有 |